home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Developers / MW MPW Binaries 1.1.1a2 / mwcPPC / MWCIncludes / Printing.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-01-31  |  15.7 KB  |  565 lines  |  [TEXT/MMCC]

  1. /*
  2.     File:        Printing.h
  3.  
  4.     Copyright:    © 1984-1993 by Apple Computer, Inc., all rights reserved.
  5.  
  6.     WARNING
  7.     This file was auto generated by the interfacer tool. Modifications
  8.     must be made to the master file.
  9.  
  10. */
  11.  
  12. #ifndef __PRINTING__
  13. #define __PRINTING__
  14.  
  15. #ifndef __QUICKDRAW__
  16. #include <Quickdraw.h>
  17. /*    #include <Types.h>                                            */
  18. /*        #include <ConditionalMacros.h>                            */
  19. /*        #include <MixedMode.h>                                    */
  20. /*            #include <Traps.h>                                    */
  21. /*    #include <QuickdrawText.h>                                    */
  22. /*        #include <IntlResources.h>                                */
  23. #endif
  24.  
  25. #ifndef __DIALOGS__
  26. #include <Dialogs.h>
  27. /*    #include <Windows.h>                                        */
  28. /*        #include <Events.h>                                        */
  29. /*            #include <OSUtils.h>                                */
  30. /*        #include <Controls.h>                                    */
  31. /*            #include <Menus.h>                                    */
  32. /*    #include <TextEdit.h>                                        */
  33. #endif
  34.  
  35. enum  {
  36.     iPFMaxPgs                    = 128,
  37.     iPrPgFract                    = 120,                            /*Page scale factor. ptPgSize (below) is in units of 1/iPrPgFract*/
  38.     iPrPgFst                    = 1,                            /*Page range constants*/
  39.     iPrPgMax                    = 9999,
  40.     iPrRelease                    = 3,                            /*Current version number of the code.*/
  41.     iPrSavPFil                    = -1,
  42.     iPrAbort                    = 0x0080,
  43.     iPrDevCtl                    = 7,                            /*The PrDevCtl Proc's ctl number*/
  44.     lPrReset                    = 0x00010000,                    /*The PrDevCtl Proc's CParam for reset*/
  45.     lPrLineFeed                    = 0x00030000,
  46.     lPrLFStd                    = 0x0003FFFF,                    /*The PrDevCtl Proc's CParam for std paper advance*/
  47.     lPrLFSixth                    = 0x0003FFFF,
  48.     lPrPageEnd                    = 0x00020000,                    /*The PrDevCtl Proc's CParam for end page*/
  49.     lPrDocOpen                    = 0x00010000,
  50.     lPrPageOpen                    = 0x00040000,
  51.     lPrPageClose                = 0x00020000,
  52.     lPrDocClose                    = 0x00050000,
  53.     iFMgrCtl                    = 8,                            /*The FMgr's Tail-hook Proc's ctl number*/
  54.     iMscCtl                        = 9,                            /*The FMgr's Tail-hook Proc's ctl number*/
  55.     iPvtCtl                        = 10                            /*The FMgr's Tail-hook Proc's ctl number*/
  56. };
  57.  
  58. #define sPrDrvr ".Print"
  59.  
  60. enum  {
  61.     iMemFullErr                    = -108,
  62.     iIOAbort                    = -27,
  63.     pPrGlobals                    = 0x00000944,                    /*The PrVars lo mem area:*/
  64.     bDraftLoop                    = 0,
  65.     bSpoolLoop                    = 1,
  66.     bUser1Loop                    = 2,
  67.     bUser2Loop                    = 3,
  68.     fNewRunBit                    = 2,
  69.     fHiResOK                    = 3,
  70.     fWeOpenedRF                    = 4,
  71. /*Driver constants */
  72.     iPrBitsCtl                    = 4,
  73.     lScreenBits                    = 0,
  74.     lPaintBits                    = 1,
  75.     lHiScreenBits                = 0x00000002,                    /*The Bitmap Print Proc's Screen Bitmap param*/
  76.     lHiPaintBits                = 0x00000003,                    /*The Bitmap Print Proc's Paint [sq pix] param*/
  77.     iPrIOCtl                    = 5,
  78.     iPrEvtCtl                    = 6,                            /*The PrEvent Proc's ctl number*/
  79.     lPrEvtAll                    = 0x0002FFFD,                    /*The PrEvent Proc's CParam for the entire screen*/
  80.     lPrEvtTop                    = 0x0001FFFD,                    /*The PrEvent Proc's CParam for the top folder*/
  81.     iPrDrvrRef                    = -3
  82. };
  83.  
  84. enum  {
  85.     getRslDataOp                = 4,
  86.     setRslOp                    = 5,
  87.     draftBitsOp                    = 6,
  88.     noDraftBitsOp                = 7,
  89.     getRotnOp                    = 8,
  90.     NoSuchRsl                    = 1,
  91.     OpNotImpl                    = 2,                            /*the driver doesn't support this opcode*/
  92.     RgType1                        = 1
  93. };
  94.  
  95. enum  {
  96.     feedCut,
  97.     feedFanfold,
  98.     feedMechCut,
  99.     feedOther
  100. };
  101.  
  102. typedef unsigned char TFeed;
  103.  
  104. enum  {
  105.     scanTB,
  106.     scanBT,
  107.     scanLR,
  108.     scanRL
  109. };
  110.  
  111. typedef unsigned char TScan;
  112.  
  113.  
  114. /* A Rect Ptr */
  115.  
  116. typedef Rect *TPRect;
  117.  
  118. typedef pascal void (*PrIdleProcPtr)(void);
  119.  
  120. enum {
  121.     uppPrIdleProcInfo = kPascalStackBased
  122. };
  123.  
  124. #if USESROUTINEDESCRIPTORS
  125. typedef UniversalProcPtr PrIdleUPP;
  126.  
  127. #define CallPrIdleProc(userRoutine)        \
  128.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppPrIdleProcInfo)
  129. #define NewPrIdleProc(userRoutine)        \
  130.         (PrIdleUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppPrIdleProcInfo, GetCurrentISA())
  131. #else
  132. typedef PrIdleProcPtr PrIdleUPP;
  133.  
  134. #define CallPrIdleProc(userRoutine)        \
  135.         (*(userRoutine))()
  136. #define NewPrIdleProc(userRoutine)        \
  137.         (PrIdleUPP)(userRoutine)
  138. #endif
  139.  
  140. typedef pascal void (*PItemProcPtr)(DialogPtr theDialog, short item);
  141.  
  142. enum {
  143.     uppPItemProcInfo = kPascalStackBased
  144.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(DialogPtr)))
  145.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(short)))
  146. };
  147.  
  148. #if USESROUTINEDESCRIPTORS
  149. typedef UniversalProcPtr PItemUPP;
  150.  
  151. #define CallPItemProc(userRoutine, theDialog, item)        \
  152.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppPItemProcInfo, (theDialog), (item))
  153. #define NewPItemProc(userRoutine)        \
  154.         (PItemUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppPItemProcInfo, GetCurrentISA())
  155. #else
  156. typedef PItemProcPtr PItemUPP;
  157.  
  158. #define CallPItemProc(userRoutine, theDialog, item)        \
  159.         (*(userRoutine))((theDialog), (item))
  160. #define NewPItemProc(userRoutine)        \
  161.         (PItemUPP)(userRoutine)
  162. #endif
  163.  
  164. #if defined(powerc) || defined (__powerc)
  165. #pragma options align=mac68k
  166. #endif
  167. struct TPrPort {
  168.     GrafPort                    gPort;                            /*The Printer's graf port.*/
  169.     QDProcs                        gProcs;                            /*..and its procs*/
  170.     long                        lGParam1;                        /*16 bytes for private parameter storage.*/
  171.     long                        lGParam2;
  172.     long                        lGParam3;
  173.     long                        lGParam4;
  174.     Boolean                        fOurPtr;                        /*Whether the PrPort allocation was done by us.*/
  175.     Boolean                        fOurBits;                        /*Whether the BitMap allocation was done by us.*/
  176. };
  177. #if defined(powerc) || defined(__powerc)
  178. #pragma options align=reset
  179. #endif
  180.  
  181. typedef struct TPrPort TPrPort;
  182.  
  183. typedef TPrPort *TPPrPort;
  184.  
  185.  
  186. /* Printing Graf Port. All printer imaging, whether spooling, banding, etc, happens "thru" a GrafPort.
  187.   This is the "PrPeek" record. */
  188.  
  189. #if defined(powerc) || defined (__powerc)
  190. #pragma options align=mac68k
  191. #endif
  192. struct TPrInfo {
  193.     short                        iDev;                            /*Font mgr/QuickDraw device code*/
  194.     short                        iVRes;                            /*Resolution of device, in device coordinates*/
  195.     short                        iHRes;                            /*..note: V before H => compatable with Point.*/
  196.     Rect                        rPage;                            /*The page (printable) rectangle in device coordinates.*/
  197. };
  198. #if defined(powerc) || defined(__powerc)
  199. #pragma options align=reset
  200. #endif
  201.  
  202. typedef struct TPrInfo TPrInfo;
  203.  
  204. typedef TPrInfo *TPPrInfo;
  205.  
  206.  
  207. /* Print Info Record: The parameters needed for page composition. */
  208.  
  209. #if defined(powerc) || defined (__powerc)
  210. #pragma options align=mac68k
  211. #endif
  212. struct TPrStl {
  213.     short                        wDev;
  214.     short                        iPageV;
  215.     short                        iPageH;
  216.     char                        bPort;
  217.     TFeed                        feed;
  218. };
  219. #if defined(powerc) || defined(__powerc)
  220. #pragma options align=reset
  221. #endif
  222.  
  223. typedef struct TPrStl TPrStl;
  224.  
  225. typedef TPrStl *TPPrStl;
  226.  
  227. #if defined(powerc) || defined (__powerc)
  228. #pragma options align=mac68k
  229. #endif
  230. struct TPrXInfo {
  231.     short                        iRowBytes;
  232.     short                        iBandV;
  233.     short                        iBandH;
  234.     short                        iDevBytes;
  235.     short                        iBands;
  236.     char                        bPatScale;
  237.     char                        bUlThick;
  238.     char                        bUlOffset;
  239.     char                        bUlShadow;
  240.     TScan                        scan;
  241.     char                        bXInfoX;
  242. };
  243. #if defined(powerc) || defined(__powerc)
  244. #pragma options align=reset
  245. #endif
  246.  
  247. typedef struct TPrXInfo TPrXInfo;
  248.  
  249. typedef TPrXInfo *TPPrXInfo;
  250.  
  251. #if defined(powerc) || defined (__powerc)
  252. #pragma options align=mac68k
  253. #endif
  254. struct TPrJob {
  255.     short                        iFstPage;                        /*Page Range.*/
  256.     short                        iLstPage;
  257.     short                        iCopies;                        /*No. copies.*/
  258.     char                        bJDocLoop;                        /*The Doc style: Draft, Spool, .., and ..*/
  259.     Boolean                        fFromUsr;                        /*Printing from an User's App (not PrApp) flag*/
  260.     PrIdleUPP                    pIdleProc;                        /*The Proc called while waiting on IO etc.*/
  261.     StringPtr                    pFileName;                        /*Spool File Name: NIL for default.*/
  262.     short                        iFileVol;                        /*Spool File vol, set to 0 initially*/
  263.     char                        bFileVers;                        /*Spool File version, set to 0 initially*/
  264.     char                        bJobX;                            /*An eXtra byte.*/
  265. };
  266. #if defined(powerc) || defined(__powerc)
  267. #pragma options align=reset
  268. #endif
  269.  
  270. typedef struct TPrJob TPrJob;
  271.  
  272. typedef TPrJob *TPPrJob;
  273.  
  274.  
  275. /* Print Job: Print "form" for a single print request. */
  276.  
  277. #if defined(powerc) || defined (__powerc)
  278. #pragma options align=mac68k
  279. #endif
  280. struct TPrint {
  281.     short                        iPrVersion;                        /*(2) Printing software version*/
  282.     TPrInfo                        prInfo;                            /*(14) the PrInfo data associated with the current style.*/
  283.     Rect                        rPaper;                            /*(8) The paper rectangle [offset from rPage]*/
  284.     TPrStl                        prStl;                            /*(8)  This print request's style.*/
  285.     TPrInfo                        prInfoPT;                        /*(14)  Print Time Imaging metrics*/
  286.     TPrXInfo                    prXInfo;                        /*(16)  Print-time (expanded) Print info record.*/
  287.     TPrJob                        prJob;                            /*(20) The Print Job request (82)  Total of the above; 120-82 = 38 bytes needed to fill 120*/
  288.     short                        printX[19];                        /*Spare to fill to 120 bytes!*/
  289. };
  290. #if defined(powerc) || defined(__powerc)
  291. #pragma options align=reset
  292. #endif
  293.  
  294. typedef struct TPrint TPrint;
  295.  
  296. typedef TPrint *TPPrint, **THPrint;
  297.  
  298.  
  299. /* The universal 120 byte printing record */
  300.  
  301. #if defined(powerc) || defined (__powerc)
  302. #pragma options align=mac68k
  303. #endif
  304. struct TPrStatus {
  305.     short                        iTotPages;                        /*Total pages in Print File.*/
  306.     short                        iCurPage;                        /*Current page number*/
  307.     short                        iTotCopies;                        /*Total copies requested*/
  308.     short                        iCurCopy;                        /*Current copy number*/
  309.     short                        iTotBands;                        /*Total bands per page.*/
  310.     short                        iCurBand;                        /*Current band number*/
  311.     Boolean                        fPgDirty;                        /*True if current page has been written to.*/
  312.     Boolean                        fImaging;                        /*Set while in band's DrawPic call.*/
  313.     THPrint                        hPrint;                            /*Handle to the active Printer record*/
  314.     TPPrPort                    pPrPort;                        /*Ptr to the active PrPort*/
  315.     PicHandle                    hPic;                            /*Handle to the active Picture*/
  316. };
  317. #if defined(powerc) || defined(__powerc)
  318. #pragma options align=reset
  319. #endif
  320.  
  321. typedef struct TPrStatus TPrStatus;
  322.  
  323. typedef TPrStatus *TPPrStatus;
  324.  
  325.  
  326. /* Print Status: Print information during printing. */
  327.  
  328. #if defined(powerc) || defined (__powerc)
  329. #pragma options align=mac68k
  330. #endif
  331. struct TPfPgDir {
  332.     short                        iPages;
  333.     long                        iPgPos[129];                    /*ARRAY [0..iPfMaxPgs] OF LONGINT*/
  334. };
  335. #if defined(powerc) || defined(__powerc)
  336. #pragma options align=reset
  337. #endif
  338.  
  339. typedef struct TPfPgDir TPfPgDir;
  340.  
  341. typedef TPfPgDir *TPPfPgDir, **THPfPgDir;
  342.  
  343.  
  344. /* PicFile = a TPfHeader followed by n QuickDraw Pics (whose PicSize is invalid!) */
  345.  
  346. #if defined(powerc) || defined (__powerc)
  347. #pragma options align=mac68k
  348. #endif
  349. struct TPrDlg {
  350.     DialogRecord                Dlg;                            /*The Dialog window*/
  351.     ModalFilterUPP                pFltrProc;                        /*The Filter Proc.*/
  352.     PItemUPP                    pItemProc;                        /*The Item evaluating proc.*/
  353.     THPrint                        hPrintUsr;                        /*The user's print record.*/
  354.     Boolean                        fDoIt;
  355.     Boolean                        fDone;
  356.     long                        lUser1;                            /*Four longs for user's to hang global data.*/
  357.     long                        lUser2;                            /*...Plus more stuff needed by the particular printing dialog.*/
  358.     long                        lUser3;
  359.     long                        lUser4;
  360. };
  361. #if defined(powerc) || defined(__powerc)
  362. #pragma options align=reset
  363. #endif
  364.  
  365. typedef struct TPrDlg TPrDlg;
  366.  
  367. typedef TPrDlg *TPPrDlg;
  368.  
  369. typedef pascal TPPrDlg (*PDlgInitProcPtr)(THPrint hPrint);
  370.  
  371. enum {
  372.     uppPDlgInitProcInfo = kPascalStackBased
  373.          | RESULT_SIZE(SIZE_CODE(sizeof(TPPrDlg)))
  374.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(THPrint)))
  375. };
  376.  
  377. #if USESROUTINEDESCRIPTORS
  378. typedef UniversalProcPtr PDlgInitUPP;
  379.  
  380. #define CallPDlgInitProc(userRoutine, hPrint)        \
  381.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppPDlgInitProcInfo, (hPrint))
  382. #define NewPDlgInitProc(userRoutine)        \
  383.         (PDlgInitUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppPDlgInitProcInfo, GetCurrentISA())
  384. #else
  385. typedef PDlgInitProcPtr PDlgInitUPP;
  386.  
  387. #define CallPDlgInitProc(userRoutine, hPrint)        \
  388.         (*(userRoutine))((hPrint))
  389. #define NewPDlgInitProc(userRoutine)        \
  390.         (PDlgInitUPP)(userRoutine)
  391. #endif
  392.  
  393.  
  394. /* This is the Printing Dialog Record. Only used by folks appending their own dialogs.
  395. Print Dialog: The Dialog Stream object. */
  396.  
  397. #if defined(powerc) || defined (__powerc)
  398. #pragma options align=mac68k
  399. #endif
  400. struct TGnlData {
  401.     short                        iOpCode;
  402.     short                        iError;
  403.     long                        lReserved;                        /*more fields here depending on call*/
  404. };
  405. #if defined(powerc) || defined(__powerc)
  406. #pragma options align=reset
  407. #endif
  408.  
  409. typedef struct TGnlData TGnlData;
  410.  
  411. #if defined(powerc) || defined (__powerc)
  412. #pragma options align=mac68k
  413. #endif
  414. struct TRslRg {
  415.     short                        iMin;
  416.     short                        iMax;
  417. };
  418. #if defined(powerc) || defined(__powerc)
  419. #pragma options align=reset
  420. #endif
  421.  
  422. typedef struct TRslRg TRslRg;
  423.  
  424. #if defined(powerc) || defined (__powerc)
  425. #pragma options align=mac68k
  426. #endif
  427. struct TRslRec {
  428.     short                        iXRsl;
  429.     short                        iYRsl;
  430. };
  431. #if defined(powerc) || defined(__powerc)
  432. #pragma options align=reset
  433. #endif
  434.  
  435. typedef struct TRslRec TRslRec;
  436.  
  437. #if defined(powerc) || defined (__powerc)
  438. #pragma options align=mac68k
  439. #endif
  440. struct TGetRslBlk {
  441.     short                        iOpCode;
  442.     short                        iError;
  443.     long                        lReserved;
  444.     short                        iRgType;
  445.     TRslRg                        xRslRg;
  446.     TRslRg                        yRslRg;
  447.     short                        iRslRecCnt;
  448.     TRslRec                        rgRslRec[27];
  449. };
  450. #if defined(powerc) || defined(__powerc)
  451. #pragma options align=reset
  452. #endif
  453.  
  454. typedef struct TGetRslBlk TGetRslBlk;
  455.  
  456. #if defined(powerc) || defined (__powerc)
  457. #pragma options align=mac68k
  458. #endif
  459. struct TSetRslBlk {
  460.     short                        iOpCode;
  461.     short                        iError;
  462.     long                        lReserved;
  463.     THPrint                        hPrint;
  464.     short                        iXRsl;
  465.     short                        iYRsl;
  466. };
  467. #if defined(powerc) || defined(__powerc)
  468. #pragma options align=reset
  469. #endif
  470.  
  471. typedef struct TSetRslBlk TSetRslBlk;
  472.  
  473. #if defined(powerc) || defined (__powerc)
  474. #pragma options align=mac68k
  475. #endif
  476. struct TDftBitsBlk {
  477.     short                        iOpCode;
  478.     short                        iError;
  479.     long                        lReserved;
  480.     THPrint                        hPrint;
  481. };
  482. #if defined(powerc) || defined(__powerc)
  483. #pragma options align=reset
  484. #endif
  485.  
  486. typedef struct TDftBitsBlk TDftBitsBlk;
  487.  
  488. #if defined(powerc) || defined (__powerc)
  489. #pragma options align=mac68k
  490. #endif
  491. struct TGetRotnBlk {
  492.     short                        iOpCode;
  493.     short                        iError;
  494.     long                        lReserved;
  495.     THPrint                        hPrint;
  496.     Boolean                        fLandscape;
  497.     char                        bXtra;
  498. };
  499. #if defined(powerc) || defined(__powerc)
  500. #pragma options align=reset
  501. #endif
  502.  
  503. typedef struct TGetRotnBlk TGetRotnBlk;
  504.  
  505. #ifdef __cplusplus
  506. extern "C" {
  507. #endif
  508.  
  509. extern pascal void PrPurge(void)
  510.  FOURWORDINLINE(0x2F3C, 0xA800, 0x0000, 0xA8FD);
  511. extern pascal void PrNoPurge(void)
  512.  FOURWORDINLINE(0x2F3C, 0xB000, 0x0000, 0xA8FD);
  513. extern pascal void PrOpen(void)
  514.  FOURWORDINLINE(0x2F3C, 0xC800, 0x0000, 0xA8FD);
  515. extern pascal void PrClose(void)
  516.  FOURWORDINLINE(0x2F3C, 0xD000, 0x0000, 0xA8FD);
  517. extern pascal void PrintDefault(THPrint hPrint)
  518.  FOURWORDINLINE(0x2F3C, 0x2004, 0x0480, 0xA8FD);
  519. extern pascal Boolean PrValidate(THPrint hPrint)
  520.  FOURWORDINLINE(0x2F3C, 0x5204, 0x0498, 0xA8FD);
  521. extern pascal Boolean PrStlDialog(THPrint hPrint)
  522.  FOURWORDINLINE(0x2F3C, 0x2A04, 0x0484, 0xA8FD);
  523. extern pascal Boolean PrJobDialog(THPrint hPrint)
  524.  FOURWORDINLINE(0x2F3C, 0x3204, 0x0488, 0xA8FD);
  525. extern pascal TPPrDlg PrStlInit(THPrint hPrint)
  526.  FOURWORDINLINE(0x2F3C, 0x3C04, 0x040C, 0xA8FD);
  527. extern pascal TPPrDlg PrJobInit(THPrint hPrint)
  528.  FOURWORDINLINE(0x2F3C, 0x4404, 0x0410, 0xA8FD);
  529. extern pascal void PrJobMerge(THPrint hPrintSrc, THPrint hPrintDst)
  530.  FOURWORDINLINE(0x2F3C, 0x5804, 0x089C, 0xA8FD);
  531. extern pascal Boolean PrDlgMain(THPrint hPrint, PDlgInitUPP pDlgInit)
  532.  FOURWORDINLINE(0x2F3C, 0x4A04, 0x0894, 0xA8FD);
  533. extern pascal TPPrPort PrOpenDoc(THPrint hPrint, TPPrPort pPrPort, Ptr pIOBuf)
  534.  FOURWORDINLINE(0x2F3C, 0x0400, 0x0C00, 0xA8FD);
  535. extern pascal void PrCloseDoc(TPPrPort pPrPort)
  536.  FOURWORDINLINE(0x2F3C, 0x0800, 0x0484, 0xA8FD);
  537. extern pascal void PrOpenPage(TPPrPort pPrPort, TPRect pPageFrame)
  538.  FOURWORDINLINE(0x2F3C, 0x1000, 0x0808, 0xA8FD);
  539. extern pascal void PrClosePage(TPPrPort pPrPort)
  540.  FOURWORDINLINE(0x2F3C, 0x1800, 0x040C, 0xA8FD);
  541. extern pascal void PrPicFile(THPrint hPrint, TPPrPort pPrPort, Ptr pIOBuf, Ptr pDevBuf, TPrStatus *prStatus)
  542.  FOURWORDINLINE(0x2F3C, 0x6005, 0x1480, 0xA8FD);
  543. extern pascal short PrError(void)
  544.  FOURWORDINLINE(0x2F3C, 0xBA00, 0x0000, 0xA8FD);
  545. extern pascal void PrSetError(short iErr)
  546.  FOURWORDINLINE(0x2F3C, 0xC000, 0x0200, 0xA8FD);
  547. extern pascal void PrGeneral(Ptr pData)
  548.  FOURWORDINLINE(0x2F3C, 0x7007, 0x0480, 0xA8FD);
  549. extern pascal void PrDrvrOpen(void)
  550.  FOURWORDINLINE(0x2F3C, 0x8000, 0x0000, 0xA8FD);
  551. extern pascal void PrDrvrClose(void)
  552.  FOURWORDINLINE(0x2F3C, 0x8800, 0x0000, 0xA8FD);
  553. extern pascal void PrCtlCall(short iWhichCtl, long lParam1, long lParam2, long lParam3)
  554.  FOURWORDINLINE(0x2F3C, 0xA000, 0x0E00, 0xA8FD);
  555. extern pascal Handle PrDrvrDCE(void)
  556.  FOURWORDINLINE(0x2F3C, 0x9400, 0x0000, 0xA8FD);
  557. extern pascal short PrDrvrVers(void)
  558.  FOURWORDINLINE(0x2F3C, 0x9A00, 0x0000, 0xA8FD);
  559. #ifdef __cplusplus
  560. }
  561. #endif
  562.  
  563. #endif
  564.  
  565.